how to open incognito tab using webbrowser

130

how to open incognito tab using webbrowser -

import webbrowser

url = 'www.google.com'
chrome_path = 'C:/Program Files (x86)/Google/Chrome/Application/chrome.exe %s --incognito'

webbrowser.get(chrome_path).open_new(url)

Comments

Submit
0 Comments